<?php
        function replace_token_url($var){
        $out = $var;
        if (is_string($var)){
            $out = str_replace("@RT_SITE_URL@", get_bloginfo("wpurl"), $var);
        }
        return $out;
    }

    function filter_token_url($value, $oldvalue) {
        if (is_array($value)){
            return multidimensionalArrayMap("replace_token_url", $value);
            return $value;
        }
        else if (is_string($value))
            return replace_token_url($value);
        else
            return $value;
    }

    function multidimensionalArrayMap( $func, $arr )
    {
    $newArr = array();
    foreach( $arr as $key => $value )
        {
        $newArr[ $key ] = ( is_array( $value ) ? multidimensionalArrayMap( $func, $value ) : $func( $value ) );
        }
    return $newArr;
   }

    // unpublish hellow world
     $hello_world = array();
     $hello_world["ID"] = 1;
     $hello_world["post_status"] = "draft";
     wp_update_post( $hello_world );
      
    
        add_filter('pre_update_option_rt_gantry_wp-template-options', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options',array (
  'template_full_name' => 'Gantry',
  'grid_system' => '12',
  'template_prefix' => 'gantry-',
  'cookie_time' => '31536000',
  'copy_lang_files_if_diff' => '1',
  'blog' => 
  array (
    'cat' => '',
    'type' => 'post',
    'content' => 'content',
    'order' => 'date',
    'page-title' => '',
    'title' => '1',
    'link-title' => '0',
    'meta-author' => '1',
    'meta-date' => '0',
    'meta-modified' => '0',
    'meta-comments' => '0',
    'meta-link-comments' => '1',
    'query' => '',
  ),
  'page' => 
  array (
    'title' => '1',
    'meta-author' => '0',
    'meta-date' => '0',
    'meta-modified' => '0',
    'meta-comments' => '0',
    'comments-form' => '1',
  ),
  'post' => 
  array (
    'title' => '1',
    'meta-author' => '1',
    'meta-date' => '1',
    'meta-modified' => '1',
    'meta-comments' => '1',
    'tags' => '1',
    'footer' => '1',
    'comments-form' => '1',
  ),
  'category' => 
  array (
    'count' => '5',
    'content' => 'content',
    'page-title' => '1',
    'title' => '1',
    'link-title' => '0',
    'meta-author' => '1',
    'meta-date' => '1',
    'meta-modified' => '0',
    'meta-comments' => '1',
    'meta-link-comments' => '1',
  ),
  'archive' => 
  array (
    'count' => '5',
    'content' => 'content',
    'page-title' => '1',
    'title' => '1',
    'link-title' => '0',
    'meta-author' => '1',
    'meta-date' => '1',
    'meta-modified' => '0',
    'meta-comments' => '1',
    'meta-link-comments' => '1',
  ),
  'tags' => 
  array (
    'count' => '5',
    'content' => 'content',
    'page-title' => '1',
    'title' => '1',
    'link-title' => '0',
    'meta-author' => '1',
    'meta-date' => '1',
    'meta-modified' => '0',
    'meta-comments' => '1',
    'meta-link-comments' => '1',
  ),
  'search' => 
  array (
    'count' => '5',
    'content' => 'content',
    'page-title' => '1',
    'title' => '1',
    'link-title' => '0',
    'meta-author' => '1',
    'meta-date' => '1',
    'meta-modified' => '0',
    'meta-comments' => '1',
    'meta-link-comments' => '1',
  ),
  'thumbnails-enabled' => '0',
  'cssstyle' => 'style1',
  'bgcolor' => '#dddddd',
  'headercolor' => '#111111',
  'bottomcolor' => '#111111',
  'footercolor' => '#666666',
  'linkcolor' => '#cc0000',
  'webfonts' => 
  array (
    'enabled' => '0',
    'source' => 'google',
  ),
  'font' => 
  array (
    'family' => 'helvetica',
    'size' => 'default',
    'size-is' => 'default',
  ),
  'wordpress-comments' => '1',
  'styledeclaration-enabled' => '1',
  'styledeclaration-priority' => '1',
  'belatedpng-priority' => '8',
  'ie6-priority' => '5',
  'iphonegradients-priority' => '4',
  'iphoneimages-priority' => '6',
  'jstools-priority' => '10',
  'rtl-priority' => '7',
  'childcss-priority' => '100',
  'thumbnails-priority' => '1',
  'title-priority' => '5',
  'webfonts-priority' => '5',
  'pagesuffix' => 
  array (
    'enabled' => '0',
    'class' => '',
    'priority' => '2',
  ),
  'feedlinks' => 
  array (
    'enabled' => '1',
    'priority' => '1',
  ),
  'ie6warn' => 
  array (
    'enabled' => '1',
    'delay' => '2000',
    'priority' => '9',
  ),
  'smartload' => 
  array (
    'enabled' => '0',
    'text' => '50',
    'exclusion' => '',
    'priority' => '11',
  ),
  'widgetshortcodes' => 
  array (
    'enabled' => '1',
    'priority' => '2',
  ),
  'analytics' => 
  array (
    'enabled' => '0',
    'code' => '',
    'priority' => '3',
  ),
  'top' => 
  array (
    'layout' => '5,7',
    'showall' => '0',
    'showmax' => '6',
  ),
  'header' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'showcase' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'feature' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'utility' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'maintop' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'mainbodyPosition' => '6,3,3',
  'mainbottom' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'bottom' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'footer' => 
  array (
    'layout' => '3,3,3,3',
    'showall' => '0',
    'showmax' => '6',
  ),
  'iphone-enabled' => '1',
  'iphone-scalable' => '0',
  'iphoneimages' => 
  array (
    'enabled' => '1',
    'minWidth' => '80',
    'percentage' => '33',
  ),
  'iphone-header-gradient' => 
  array (
    'from' => '#545353',
    'to' => '#262626',
    'direction_start' => 'left-top',
    'fromopacity' => '1',
    'toopacity' => '1',
    'direction_end' => 'left-bottom',
  ),
  'iphone-showcase-gradient' => 
  array (
    'from' => '#ededed',
    'to' => '#fff',
    'direction_start' => 'left-top',
    'fromopacity' => '1',
    'toopacity' => '1',
    'direction_end' => 'left-bottom',
  ),
  'iphone-copyright-gradient' => 
  array (
    'from' => '#545353',
    'to' => '#262626',
    'direction_start' => 'left-top',
    'fromopacity' => '1',
    'toopacity' => '1',
    'direction_end' => 'left-bottom',
  ),
  'mobile' => 
  array (
    'drawer' => 'drawer',
    'top' => 'top-a',
    'header' => 'header-a',
    'navigation' => 'mobile-navigation',
    'showcase' => 'mobile-showcase',
    'footer' => 'footer-a',
    'copyright' => 'copyright',
  ),
  'cache' => 
  array (
    'enabled' => '0',
    'time' => '900',
  ),
  'gzipper' => 
  array (
    'enabled' => '0',
    'time' => '600',
    'expirestime' => '1440',
    'stripwhitespace' => '1',
  ),
  'inputstyling' => 
  array (
    'enabled' => '1',
    'exclusions' => '\'.content_vote\'',
  ),
  'component-enabled' => '1',
  'rtl-enabled' => '1',
  'buildspans-enabled' => '1',
  'texturize-enabled' => '0',
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-1', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-1',array (
  'mainbodyPosition' => 'a:1:{i:12;a:2:{i:1;a:1:{s:2:"mb";i:12;}i:3;a:3:{s:2:"sa";i:3;s:2:"mb";i:6;s:2:"sb";i:3;}}}',
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-1', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-assignments-1', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-assignments-1',array (
  'templatepage' => 
  array (
    'home' => true,
    'front_page' => true,
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-assignments-1', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-assignments-2', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-assignments-2',array (
  'templatepage' => 
  array (
    'single' => true,
    'page' => true,
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-assignments-2', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-assignments-3', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-assignments-3',array (
  'post_type' => 
  array (
    'page' => 
    array (
      0 => 102,
    ),
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-assignments-3', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-sidebar-1', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-sidebar-1',array (
  'header' => 
  array (
    0 => 'gantry_logo-10503',
    1 => 'gantrydivider-10003',
    2 => 'text-10003',
  ),
  'showcase' => 
  array (
    0 => 'text-10004',
    1 => 'gantrydivider-10004',
    2 => 'text-10005',
    3 => 'gantrydivider-10005',
    4 => 'text-10006',
    5 => 'gantrydivider-10006',
    6 => 'text-10007',
  ),
  'sidebar' => 
  array (
    0 => 'gantry_menu-10006',
    1 => 'text-10009',
    2 => 'gantrydivider-10007',
    3 => 'text-10008',
  ),
  'bottom' => 
  array (
    0 => 'text-10010',
    1 => 'gantrydivider-10008',
    2 => 'text-10011',
    3 => 'gantrydivider-10009',
    4 => 'text-10012',
    5 => 'gantrydivider-10011',
    6 => 'text-10014',
  ),
  'wp_inactive_widgets' => 
  array (
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-sidebar-1', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-sidebar-2', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-sidebar-2',array (
  'breadcrumb' => 
  array (
    0 => 'gantry_breakcrumbs-20003',
  ),
  'wp_inactive_widgets' => 
  array (
    0 => 'pages-20502',
    1 => 'calendar-20502',
    2 => 'links-20502',
    3 => 'text-20502',
    4 => 'rss-20502',
    5 => 'tag_cloud-20502',
    6 => 'nav_menu-20502',
    7 => 'gantry_archives-20502',
    8 => 'gantry_breakcrumbs-20502',
    9 => 'gantry_categories-20502',
    10 => 'gantry_copyright-20502',
    11 => 'gantry_date-20502',
    12 => 'gantrydivider-20502',
    13 => 'gantry_fontsizer-20502',
    14 => 'gantry_links-20502',
    15 => 'gantry_meta-20502',
    16 => 'gantry_overrides_map-20502',
    17 => 'gantry_pages-20502',
    18 => 'gantry_recentcomments-20502',
    19 => 'gantry_recentposts-20502',
    20 => 'gantry_resetsettings-20502',
    21 => 'gantry_totop-20502',
    22 => 'gantry_viewswitcher-20502',
    23 => 'gantry_iphonemenu-20502',
    24 => 'gantry_menu-20502',
    25 => 'gantry_logo-20502',
    26 => 'search-20502',
    27 => 'recent-posts-20502',
    28 => 'recent-comments-20502',
    29 => 'archives-20502',
    30 => 'categories-20502',
    31 => 'meta-20502',
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-sidebar-2', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-sidebar-3', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-sidebar-3',array (
  'header' => 
  array (
    0 => 'gantry_logo-30503',
    1 => 'text-40015',
    2 => 'gantrydivider-30003',
    3 => 'text-40016',
    4 => 'gantrydivider-30004',
    5 => 'text-40017',
    6 => 'gantrydivider-30005',
    7 => 'text-40018',
    8 => 'gantrydivider-30006',
    9 => 'text-40019',
  ),
  'showcase' => 
  array (
    0 => 'text-40020',
    1 => 'gantrydivider-30007',
    2 => 'text-40021',
    3 => 'gantrydivider-30008',
    4 => 'text-40022',
    5 => 'gantrydivider-30009',
    6 => 'text-40023',
  ),
  'feature' => 
  array (
    0 => 'text-40024',
    1 => 'gantrydivider-30010',
    2 => 'text-40025',
    3 => 'gantrydivider-30011',
    4 => 'text-40026',
    5 => 'gantrydivider-30012',
    6 => 'text-40027',
    7 => 'gantrydivider-30013',
    8 => 'text-40028',
    9 => 'gantrydivider-30014',
    10 => 'text-40029',
  ),
  'utility' => 
  array (
    0 => 'text-40030',
    1 => 'gantrydivider-30015',
    2 => 'text-40031',
    3 => 'gantrydivider-30016',
    4 => 'text-40032',
    5 => 'gantrydivider-30019',
    6 => 'text-40033',
    7 => 'gantrydivider-30017',
    8 => 'text-40034',
    9 => 'gantrydivider-30018',
    10 => 'text-40035',
  ),
  'maintop' => 
  array (
    0 => 'text-40036',
    1 => 'gantrydivider-30020',
    2 => 'text-40037',
    3 => 'gantrydivider-30021',
    4 => 'text-40038',
    5 => 'gantrydivider-30022',
    6 => 'text-40039',
    7 => 'gantrydivider-30023',
    8 => 'text-40040',
    9 => 'gantrydivider-30024',
    10 => 'text-40041',
  ),
  'breadcrumb' => 
  array (
  ),
  'sidebar' => 
  array (
    0 => 'text-40045',
    1 => 'text-40044',
    2 => 'gantrydivider-30025',
    3 => 'text-40043',
    4 => 'text-40046',
    5 => 'gantrydivider-30027',
    6 => 'text-40042',
    7 => 'text-40047',
  ),
  'content-top' => 
  array (
    0 => 'text-40048',
    1 => 'gantrydivider-30028',
    2 => 'text-40049',
    3 => 'gantrydivider-30029',
    4 => 'text-40050',
  ),
  'content-bottom' => 
  array (
    0 => 'text-40053',
    1 => 'gantrydivider-30030',
    2 => 'text-40052',
    3 => 'gantrydivider-30031',
    4 => 'text-40051',
  ),
  'mainbottom' => 
  array (
    0 => 'text-40054',
    1 => 'gantrydivider-30032',
    2 => 'text-40056',
    3 => 'gantrydivider-30033',
    4 => 'text-40057',
    5 => 'gantrydivider-30034',
    6 => 'text-40055',
  ),
  'bottom' => 
  array (
    0 => 'text-40060',
    1 => 'gantrydivider-30040',
    2 => 'text-40065',
    3 => 'gantrydivider-30041',
    4 => 'text-40066',
    5 => 'gantrydivider-30044',
    6 => 'text-40067',
    7 => 'gantrydivider-30043',
    8 => 'text-40068',
    9 => 'gantrydivider-30042',
    10 => 'text-40069',
  ),
  'footer' => 
  array (
    0 => 'text-40064',
    1 => 'gantrydivider-30036',
    2 => 'text-40058',
    3 => 'gantrydivider-30037',
    4 => 'text-40062',
    5 => 'gantrydivider-30038',
    6 => 'text-40063',
    7 => 'gantrydivider-30039',
    8 => 'text-40061',
    9 => 'gantrydivider-30035',
    10 => 'text-40059',
  ),
  'wp_inactive_widgets' => 
  array (
    0 => 'pages-30502',
    1 => 'calendar-30502',
    2 => 'links-30502',
    3 => 'text-30502',
    4 => 'rss-30502',
    5 => 'tag_cloud-30502',
    6 => 'nav_menu-30502',
    7 => 'gantry_archives-30502',
    8 => 'gantry_breakcrumbs-30502',
    9 => 'gantry_categories-30502',
    10 => 'gantry_copyright-30502',
    11 => 'gantry_date-30502',
    12 => 'gantrydivider-30502',
    13 => 'gantry_fontsizer-30502',
    14 => 'gantry_links-30502',
    15 => 'gantry_meta-30502',
    16 => 'gantry_overrides_map-30502',
    17 => 'gantry_pages-30502',
    18 => 'gantry_recentcomments-30502',
    19 => 'gantry_recentposts-30502',
    20 => 'gantry_resetsettings-30502',
    21 => 'gantry_totop-30502',
    22 => 'gantry_viewswitcher-30502',
    23 => 'gantry_iphonemenu-30502',
    24 => 'gantry_menu-30502',
    25 => 'gantry_logo-30502',
    26 => 'search-30502',
    27 => 'recent-posts-30502',
    28 => 'recent-comments-30502',
    29 => 'archives-30502',
    30 => 'categories-30502',
    31 => 'meta-30502',
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-sidebar-3', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-widgets-1', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-widgets-1',array (
  'widget_pages' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_calendar' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_archives' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_links' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_meta' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_search' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_text' => 
  array (
    2 => 
    array (
    ),
    10003 => 
    array (
      'title' => 'What is Gantry ?',
      'text' => 'Gantry is a comprehensive set of building blocks to enable the rapid development and realization of a design into a flexible and powerful web platform theme.',
      'filter' => false,
    ),
    10004 => 
    array (
      'title' => '960 Grid System',
      'text' => '<p>The theme is split into <strong>rows</strong> of 6 columns, culminating in a total of <strong>68 widget positions</strong>, all perfectly aligned to the grid.</p>
<a href="#">Learn More</a>',
      'filter' => false,
    ),
    10005 => 
    array (
      'title' => 'Intuitive Interface',
      'text' => '<p>Outfitted with a <strong>sleek</strong>, intuitive administrative control panel, <strong>Gantry</strong> allows for <strong>extensive</strong> configuration with incredible ease.</p>
<a href="#">Learn More</a>',
      'filter' => false,
    ),
    10006 => 
    array (
      'title' => 'Overrides Control',
      'text' => '<p>Control over any <strong>configuration parameter</strong>, such as layouts, colors, features, etc, can all be <strong>different</strong> for any override.</p>
<a href="#">Learn More</a>',
      'filter' => false,
    ),
    10007 => 
    array (
      'title' => 'Layout Control',
      'text' => '<p>Gantry provides support for all kinds of <strong>layout options</strong> including column sizes, orientation, widget arrangment, and much more.</p><a href="#">Learn More</a>',
      'filter' => false,
    ),
    10008 => 
    array (
      'title' => 'Want to Know More?',
      'text' => '<p>Gantry is a powerful framework that RocketTheme uses as the basis for all of its new WordPress theme designs, and we have made it available to you via the GPL license. You are free to use it in your theme development projects.</p>
<p>Please check out the official <a href="http://www.gantry-framework.org">Documentation</a> for full details and information on how to implement Gantry in your own projects. We have created extensive online documenation and video screencasts detailing how to customize Gantry with minimum effort. Also. RocketTheme Club Members can access our internal Gantry Forums for an even greater level of assistance and insight.</p>
<a class="readon" href="http://www.gantry-framework.org">Learn more at the Official Gantry Framework site</a>',
      'filter' => false,
    ),
    10009 => 
    array (
      'title' => 'Gantry Support',
      'text' => '<p>We have written extensive <a href="http://www.gantry-framework.org">documentation</a> that covers a full range of topics from installation to advanced concepts such as custom features. If you find your question cannot be answered in the provided documentation, you can also find additional help via IRC as well as the RocketTheme Forums (available to active RocketTheme Club Members).</p><a href="http://www.gantry-framework.org/support">Learn more about Gantry Support options</a>            ',
      'filter' => false,
    ),
    10010 => 
    array (
      'title' => 'RTL Support',
      'text' => 'Gantry has built in RTL support which will automatically “flip” the content layouts and ordering to support RTL. ',
      'filter' => false,
    ),
    10011 => 
    array (
      'title' => 'Stunning Admin UI',
      'text' => 'Gantry provides a uniquely intuitive interface to control all aspects of the design visually with real time feedback. ',
      'filter' => false,
    ),
    10012 => 
    array (
      'title' => 'Extensible AJAX',
      'text' => 'Our powerful AJAX system allows dynamic functionality in features as well as opening up AJAX to 3rd party extensions. ',
      'filter' => false,
    ),
    10014 => 
    array (
      'title' => 'Custom Gizmos',
      'text' => 'Easily add your own unique theme functionality and special features with Gantry\'s flexible gizmo support.',
      'filter' => false,
    ),
    '_multiwidget' => 1,
  ),
  'widget_categories' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_recent-posts' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_recent-comments' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_rss' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_tag_cloud' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_nav_menu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_archives' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_breakcrumbs' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_categories' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_copyright' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_date' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantrydivider' => 
  array (
    2 => 
    array (
    ),
    10003 => 
    array (
    ),
    10004 => 
    array (
    ),
    10005 => 
    array (
    ),
    10006 => 
    array (
    ),
    10007 => 
    array (
    ),
    10008 => 
    array (
    ),
    10009 => 
    array (
    ),
    10011 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_fontsizer' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_links' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_meta' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_overrides_map' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_pages' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_recentcomments' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_recentposts' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_resetsettings' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_totop' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_viewswitcher' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_iphonemenu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_menu' => 
  array (
    2 => 
    array (
    ),
    10006 => 
    array (
      'title' => 'Main Menu',
      'nav_menu' => 'main-menu',
      'theme' => 'gantry_splitmenu',
      'limit_levels' => '1',
      'startLevel' => '0',
      'endLevel' => '1',
      'showAllChildren' => '1',
      'show_empty_menu' => '0',
      'maxdepth' => '10',
      'fusion_load_css' => '0',
      'fusion_enable_js' => '1',
      'fusion_opacity' => '1',
      'fusion_effect' => 'slidefade',
      'fusion_hidedelay' => '500',
      'fusion_menu_animation' => 'Quad.easeOut',
      'fusion_menu_duration' => '400',
      'fusion_pill' => '0',
      'fusion_pill_animation' => 'Back.easeOut',
      'fusion_pill_duration' => '400',
      'fusion_centeredOffset' => '0',
      'fusion_tweakInitial_x' => '0',
      'fusion_tweakInitial_y' => '0',
      'fusion_tweakSubsequent_x' => '0',
      'fusion_tweakSubsequent_y' => '0',
      'fusion_enable_current_id' => '0',
      'menu_suffix' => '',
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_logo' => 
  array (
    2 => 
    array (
    ),
    10503 => 
    array (
      'perstyle' => '1',
      'css' => 'body #rt-logo',
    ),
    '_multiwidget' => 1,
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-widgets-1', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-widgets-2', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-widgets-2',array (
  'widget_pages' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_calendar' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_archives' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_links' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_meta' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_search' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_text' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_categories' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_recent-posts' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_recent-comments' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_rss' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_tag_cloud' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_nav_menu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_breakcrumbs' => 
  array (
    2 => 
    array (
    ),
    20003 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_archives' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_categories' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_copyright' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_date' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantrydivider' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_fontsizer' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_links' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_meta' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_overrides_map' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_pages' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_recentcomments' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_recentposts' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_resetsettings' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_totop' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_viewswitcher' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_iphonemenu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_menu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_logo' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-widgets-2', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-override-widgets-3', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-override-widgets-3',array (
  'widget_pages' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_calendar' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_archives' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_links' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_meta' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_search' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_text' => 
  array (
    2 => 
    array (
    ),
    40015 => 
    array (
      'title' => '',
      'text' => '<b>Header -</b> Lorem ipsum dolor sit amet, consec tetur adipiscing elit. ',
      'filter' => false,
    ),
    40016 => 
    array (
      'title' => 'Header',
      'text' => 'Diam tristique urna, id fauc ibus lectus erat ut pede, maec enas varius neque.

Donec sit amet nibh. Vivamus non arcu. ',
      'filter' => true,
    ),
    40017 => 
    array (
      'title' => 'Header',
      'text' => 'Diam tristique urna, id fauc ibus lectus erat ut pede, maec enas varius neque.

Donec sit amet nibh. Vivamus non arcu. ',
      'filter' => true,
    ),
    40018 => 
    array (
      'title' => 'Header',
      'text' => 'Diam tristique urna, id fauc ibus lectus erat ut pede, maec enas varius neque.

Donec sit amet nibh. Vivamus non arcu. ',
      'filter' => true,
    ),
    40019 => 
    array (
      'title' => 'Header',
      'text' => 'Donec nunc magna, posuere eget, aliq uam in, vulp utate in, lacus sed natis. Dolor vitae mauris dapibus ullamcorper. Etiam iaculis mollis.

Donec sit amet nibh. Vivamus non arcu. ',
      'filter' => true,
    ),
    40020 => 
    array (
      'title' => 'Showcase',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40021 => 
    array (
      'title' => 'Showcase',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40022 => 
    array (
      'title' => 'Showcase',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40023 => 
    array (
      'title' => 'Showcase',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40024 => 
    array (
      'title' => 'Feature',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40025 => 
    array (
      'title' => 'Feature',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40026 => 
    array (
      'title' => 'Feature',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40027 => 
    array (
      'title' => 'Feature',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40028 => 
    array (
      'title' => 'Feature',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40029 => 
    array (
      'title' => 'Feature',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40030 => 
    array (
      'title' => '',
      'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40031 => 
    array (
      'title' => '',
      'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40032 => 
    array (
      'title' => '',
      'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40033 => 
    array (
      'title' => '',
      'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40034 => 
    array (
      'title' => '',
      'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40035 => 
    array (
      'title' => '',
      'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
      'filter' => false,
    ),
    40036 => 
    array (
      'title' => 'MainTop',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40037 => 
    array (
      'title' => 'MainTop',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40038 => 
    array (
      'title' => 'MainTop',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40039 => 
    array (
      'title' => 'MainTop',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40040 => 
    array (
      'title' => 'MainTop',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40041 => 
    array (
      'title' => 'MainTop',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40042 => 
    array (
      'title' => 'Sidebar',
      'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
      'filter' => false,
    ),
    40043 => 
    array (
      'title' => 'Sidebar',
      'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
      'filter' => false,
    ),
    40044 => 
    array (
      'title' => 'Sidebar',
      'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
      'filter' => false,
    ),
    40045 => 
    array (
      'title' => 'Sidebar',
      'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
      'filter' => false,
    ),
    40046 => 
    array (
      'title' => 'Sidebar',
      'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
      'filter' => false,
    ),
    40047 => 
    array (
      'title' => 'Sidebar',
      'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
      'filter' => false,
    ),
    40048 => 
    array (
      'title' => 'Content Top',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40049 => 
    array (
      'title' => 'Content Top',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40050 => 
    array (
      'title' => 'Content Top',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40051 => 
    array (
      'title' => 'Content Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40052 => 
    array (
      'title' => 'Content Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40053 => 
    array (
      'title' => 'Content Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40054 => 
    array (
      'title' => 'MainBottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40055 => 
    array (
      'title' => 'MainBotttom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40056 => 
    array (
      'title' => 'MainBottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40057 => 
    array (
      'title' => 'MainBottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40058 => 
    array (
      'title' => 'Footer',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40059 => 
    array (
      'title' => 'Footer',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40060 => 
    array (
      'title' => 'Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40061 => 
    array (
      'title' => 'Footer',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40062 => 
    array (
      'title' => 'Footer',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40063 => 
    array (
      'title' => 'Footer',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40064 => 
    array (
      'title' => 'Footer',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40065 => 
    array (
      'title' => 'Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40066 => 
    array (
      'title' => 'Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40067 => 
    array (
      'title' => 'Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40068 => 
    array (
      'title' => 'Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    40069 => 
    array (
      'title' => 'Bottom',
      'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
      'filter' => false,
    ),
    '_multiwidget' => 1,
  ),
  'widget_categories' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_recent-posts' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_recent-comments' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_rss' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_tag_cloud' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_nav_menu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_breakcrumbs' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_archives' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_categories' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_copyright' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_date' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantrydivider' => 
  array (
    2 => 
    array (
    ),
    30003 => 
    array (
    ),
    30004 => 
    array (
    ),
    30005 => 
    array (
    ),
    30006 => 
    array (
    ),
    30007 => 
    array (
    ),
    30008 => 
    array (
    ),
    30009 => 
    array (
    ),
    30010 => 
    array (
    ),
    30011 => 
    array (
    ),
    30012 => 
    array (
    ),
    30013 => 
    array (
    ),
    30014 => 
    array (
    ),
    30015 => 
    array (
    ),
    30016 => 
    array (
    ),
    30017 => 
    array (
    ),
    30018 => 
    array (
    ),
    30019 => 
    array (
    ),
    30020 => 
    array (
    ),
    30021 => 
    array (
    ),
    30022 => 
    array (
    ),
    30023 => 
    array (
    ),
    30024 => 
    array (
    ),
    30025 => 
    array (
    ),
    30027 => 
    array (
    ),
    30028 => 
    array (
    ),
    30029 => 
    array (
    ),
    30030 => 
    array (
    ),
    30031 => 
    array (
    ),
    30032 => 
    array (
    ),
    30033 => 
    array (
    ),
    30034 => 
    array (
    ),
    30035 => 
    array (
    ),
    30036 => 
    array (
    ),
    30037 => 
    array (
    ),
    30038 => 
    array (
    ),
    30039 => 
    array (
    ),
    30040 => 
    array (
    ),
    30041 => 
    array (
    ),
    30042 => 
    array (
    ),
    30043 => 
    array (
    ),
    30044 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_fontsizer' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_links' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_meta' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_overrides_map' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_pages' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_recentcomments' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_recentposts' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_resetsettings' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_totop' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_viewswitcher' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_iphonemenu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_menu' => 
  array (
    2 => 
    array (
    ),
    '_multiwidget' => 1,
  ),
  'widget_gantry_logo' => 
  array (
    2 => 
    array (
    ),
    30503 => 
    array (
      'perstyle' => '1',
      'css' => 'body #rt-logo',
    ),
    '_multiwidget' => 1,
  ),
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-override-widgets-3', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_rt_gantry_wp-template-options-overrides', 'filter_token_url', 10, 2);

        update_option('rt_gantry_wp-template-options-overrides',array (
  1 => 'Front Page',
  2 => 'Breadcrumbs',
  3 => 'Widget Positions',
));

        remove_filter('pre_update_option_rt_gantry_wp-template-options-overrides', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_sidebars_widgets', 'filter_token_url', 10, 2);

        update_option('sidebars_widgets',array (
  'wp_inactive_widgets' => 
  array (
    0 => 'pages-2',
    1 => 'calendar-2',
    2 => 'links-2',
    3 => 'text-2',
    4 => 'rss-2',
    5 => 'tag_cloud-2',
    6 => 'nav_menu-2',
    7 => 'gantry_archives-2',
    8 => 'gantry_breakcrumbs-2',
    9 => 'gantry_categories-2',
    10 => 'gantry_copyright-2',
    11 => 'gantry_date-2',
    12 => 'gantrydivider-2',
    13 => 'gantry_fontsizer-2',
    14 => 'gantry_links-2',
    15 => 'gantry_meta-2',
    16 => 'gantry_overrides_map-2',
    17 => 'gantry_pages-2',
    18 => 'gantry_recentcomments-2',
    19 => 'gantry_recentposts-2',
    20 => 'gantry_resetsettings-2',
    21 => 'gantry_totop-2',
    22 => 'gantry_viewswitcher-2',
    23 => 'gantry_iphonemenu-2',
    24 => 'gantry_menu-2',
    25 => 'gantry_logo-2',
    26 => 'search-2',
    27 => 'recent-posts-2',
    28 => 'recent-comments-2',
    29 => 'archives-2',
    30 => 'categories-2',
    31 => 'meta-2',
  ),
  'drawer' => 
  array (
  ),
  'top' => 
  array (
  ),
  'header' => 
  array (
    0 => 'gantry_logo-3',
  ),
  'navigation' => 
  array (
    0 => 'gantry_menu-3',
  ),
  'showcase' => 
  array (
  ),
  'feature' => 
  array (
  ),
  'utility' => 
  array (
  ),
  'maintop' => 
  array (
  ),
  'breadcrumb' => 
  array (
  ),
  'sidebar' => 
  array (
    0 => 'gantry_menu-6',
    1 => 'text-3',
  ),
  'content-top' => 
  array (
  ),
  'content-bottom' => 
  array (
  ),
  'mainbottom' => 
  array (
  ),
  'bottom' => 
  array (
  ),
  'footer' => 
  array (
  ),
  'copyright' => 
  array (
    0 => 'gantry_copyright-3',
    1 => 'gantry_totop-3',
  ),
  'mobile-drawer' => 
  array (
  ),
  'mobile-top' => 
  array (
  ),
  'mobile-header' => 
  array (
  ),
  'mobile-navigation' => 
  array (
    0 => 'gantry_iphonemenu-3',
  ),
  'mobile-showcase' => 
  array (
  ),
  'mobile-footer' => 
  array (
  ),
  'mobile-copyright' => 
  array (
  ),
  'analytics' => 
  array (
  ),
  'debug' => 
  array (
  ),
  'array_version' => 3,
));

        remove_filter('pre_update_option_sidebars_widgets', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_posts_per_page', 'filter_token_url', 10, 2);

        update_option('posts_per_page','1');

        remove_filter('pre_update_option_posts_per_page', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_active_plugins', 'filter_token_url', 10, 2);

        update_option('active_plugins',array (
  0 => 'gantry/gantry.php',
));

        remove_filter('pre_update_option_active_plugins', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_pages', 'filter_token_url', 10, 2);

        update_option('widget_pages',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_pages', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_calendar', 'filter_token_url', 10, 2);

        update_option('widget_calendar',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_calendar', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_links', 'filter_token_url', 10, 2);

        update_option('widget_links',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_links', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_text', 'filter_token_url', 10, 2);

        update_option('widget_text',array (
  2 => 
  array (
  ),
  10003 => 
  array (
    'title' => 'What is Gantry ?',
    'text' => 'Gantry is a comprehensive set of building blocks to enable the rapid development and realization of a design into a flexible and powerful web platform theme.',
    'filter' => false,
  ),
  10004 => 
  array (
    'title' => '960 Grid System',
    'text' => '<p>The theme is split into <strong>rows</strong> of 6 columns, culminating in a total of <strong>68 widget positions</strong>, all perfectly aligned to the grid.</p>
<a href="#">Learn More</a>',
    'filter' => false,
  ),
  10005 => 
  array (
    'title' => 'Intuitive Interface',
    'text' => '<p>Outfitted with a <strong>sleek</strong>, intuitive administrative control panel, <strong>Gantry</strong> allows for <strong>extensive</strong> configuration with incredible ease.</p>
<a href="#">Learn More</a>',
    'filter' => false,
  ),
  10006 => 
  array (
    'title' => 'Overrides Control',
    'text' => '<p>Control over any <strong>configuration parameter</strong>, such as layouts, colors, features, etc, can all be <strong>different</strong> for any override.</p>
<a href="#">Learn More</a>',
    'filter' => false,
  ),
  10007 => 
  array (
    'title' => 'Layout Control',
    'text' => '<p>Gantry provides support for all kinds of <strong>layout options</strong> including column sizes, orientation, widget arrangment, and much more.</p><a href="#">Learn More</a>',
    'filter' => false,
  ),
  10008 => 
  array (
    'title' => 'Want to Know More?',
    'text' => '<p>Gantry is a powerful framework that RocketTheme uses as the basis for all of its new WordPress theme designs, and we have made it available to you via the GPL license. You are free to use it in your theme development projects.</p>
<p>Please check out the official <a href="http://www.gantry-framework.org">Documentation</a> for full details and information on how to implement Gantry in your own projects. We have created extensive online documenation and video screencasts detailing how to customize Gantry with minimum effort. Also. RocketTheme Club Members can access our internal Gantry Forums for an even greater level of assistance and insight.</p>
<a class="readon" href="http://www.gantry-framework.org">Learn more at the Official Gantry Framework site</a>',
    'filter' => false,
  ),
  10009 => 
  array (
    'title' => 'Gantry Support',
    'text' => '<p>We have written extensive <a href="http://www.gantry-framework.org">documentation</a> that covers a full range of topics from installation to advanced concepts such as custom features. If you find your question cannot be answered in the provided documentation, you can also find additional help via IRC as well as the RocketTheme Forums (available to active RocketTheme Club Members).</p><a href="http://www.gantry-framework.org/support">Learn more about Gantry Support options</a>            ',
    'filter' => false,
  ),
  10010 => 
  array (
    'title' => 'RTL Support',
    'text' => 'Gantry has built in RTL support which will automatically “flip” the content layouts and ordering to support RTL. ',
    'filter' => false,
  ),
  10011 => 
  array (
    'title' => 'Stunning Admin UI',
    'text' => 'Gantry provides a uniquely intuitive interface to control all aspects of the design visually with real time feedback. ',
    'filter' => false,
  ),
  10012 => 
  array (
    'title' => 'Extensible AJAX',
    'text' => 'Our powerful AJAX system allows dynamic functionality in features as well as opening up AJAX to 3rd party extensions. ',
    'filter' => false,
  ),
  10014 => 
  array (
    'title' => 'Custom Gizmos',
    'text' => 'Easily add your own unique theme functionality and special features with Gantry\'s flexible gizmo support.',
    'filter' => false,
  ),
  3 => 
  array (
    'title' => 'Gantry Support',
    'text' => '<p>We have written extensive <a href="http://www.gantry-framework.org">documentation</a> that covers a full range of topics from installation to advanced concepts such as custom features. If you find your question cannot be answered in the provided documentation, you can also find additional help via IRC as well as the RocketTheme Forums (available to active RocketTheme Club Members).</p><a href="http://www.gantry-framework.org/support">Learn more about Gantry Support options</a>            ',
    'filter' => false,
  ),
  '_multiwidget' => 1,
  40015 => 
  array (
    'title' => '',
    'text' => '<b>Header -</b> Lorem ipsum dolor sit amet, consec tetur adipiscing elit. ',
    'filter' => false,
  ),
  40016 => 
  array (
    'title' => 'Header',
    'text' => 'Diam tristique urna, id fauc ibus lectus erat ut pede, maec enas varius neque.

Donec sit amet nibh. Vivamus non arcu. ',
    'filter' => true,
  ),
  40017 => 
  array (
    'title' => 'Header',
    'text' => 'Diam tristique urna, id fauc ibus lectus erat ut pede, maec enas varius neque.

Donec sit amet nibh. Vivamus non arcu. ',
    'filter' => true,
  ),
  40018 => 
  array (
    'title' => 'Header',
    'text' => 'Diam tristique urna, id fauc ibus lectus erat ut pede, maec enas varius neque.

Donec sit amet nibh. Vivamus non arcu. ',
    'filter' => true,
  ),
  40019 => 
  array (
    'title' => 'Header',
    'text' => 'Donec nunc magna, posuere eget, aliq uam in, vulp utate in, lacus sed natis. Dolor vitae mauris dapibus ullamcorper. Etiam iaculis mollis.

Donec sit amet nibh. Vivamus non arcu. ',
    'filter' => true,
  ),
  40020 => 
  array (
    'title' => 'Showcase',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40021 => 
  array (
    'title' => 'Showcase',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40022 => 
  array (
    'title' => 'Showcase',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40023 => 
  array (
    'title' => 'Showcase',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40024 => 
  array (
    'title' => 'Feature',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40025 => 
  array (
    'title' => 'Feature',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40026 => 
  array (
    'title' => 'Feature',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40027 => 
  array (
    'title' => 'Feature',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40028 => 
  array (
    'title' => 'Feature',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40029 => 
  array (
    'title' => 'Feature',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40030 => 
  array (
    'title' => '',
    'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40031 => 
  array (
    'title' => '',
    'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40032 => 
  array (
    'title' => '',
    'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40033 => 
  array (
    'title' => '',
    'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40034 => 
  array (
    'title' => '',
    'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40035 => 
  array (
    'title' => '',
    'text' => '<strong>Utility</strong><br/>Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh. ',
    'filter' => false,
  ),
  40036 => 
  array (
    'title' => 'MainTop',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40037 => 
  array (
    'title' => 'MainTop',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40038 => 
  array (
    'title' => 'MainTop',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40039 => 
  array (
    'title' => 'MainTop',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40040 => 
  array (
    'title' => 'MainTop',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40041 => 
  array (
    'title' => 'MainTop',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40042 => 
  array (
    'title' => 'Sidebar',
    'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
    'filter' => false,
  ),
  40043 => 
  array (
    'title' => 'Sidebar',
    'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
    'filter' => false,
  ),
  40044 => 
  array (
    'title' => 'Sidebar',
    'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
    'filter' => false,
  ),
  40045 => 
  array (
    'title' => 'Sidebar',
    'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
    'filter' => false,
  ),
  40046 => 
  array (
    'title' => 'Sidebar',
    'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
    'filter' => false,
  ),
  40047 => 
  array (
    'title' => 'Sidebar',
    'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
    'filter' => false,
  ),
  40048 => 
  array (
    'title' => 'Content Top',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40049 => 
  array (
    'title' => 'Content Top',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40050 => 
  array (
    'title' => 'Content Top',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40051 => 
  array (
    'title' => 'Content Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40052 => 
  array (
    'title' => 'Content Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40053 => 
  array (
    'title' => 'Content Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40054 => 
  array (
    'title' => 'MainBottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40055 => 
  array (
    'title' => 'MainBotttom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40056 => 
  array (
    'title' => 'MainBottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40057 => 
  array (
    'title' => 'MainBottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40058 => 
  array (
    'title' => 'Footer',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40059 => 
  array (
    'title' => 'Footer',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40060 => 
  array (
    'title' => 'Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40061 => 
  array (
    'title' => 'Footer',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40062 => 
  array (
    'title' => 'Footer',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40063 => 
  array (
    'title' => 'Footer',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40064 => 
  array (
    'title' => 'Footer',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40065 => 
  array (
    'title' => 'Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40066 => 
  array (
    'title' => 'Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40067 => 
  array (
    'title' => 'Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40068 => 
  array (
    'title' => 'Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
  40069 => 
  array (
    'title' => 'Bottom',
    'text' => 'Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Donec sit amet nibh.',
    'filter' => false,
  ),
));

        remove_filter('pre_update_option_widget_text', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_rss', 'filter_token_url', 10, 2);

        update_option('widget_rss',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_rss', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_tag_cloud', 'filter_token_url', 10, 2);

        update_option('widget_tag_cloud',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_tag_cloud', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_nav_menu', 'filter_token_url', 10, 2);

        update_option('widget_nav_menu',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_nav_menu', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_archives', 'filter_token_url', 10, 2);

        update_option('widget_gantry_archives',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_archives', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_breakcrumbs', 'filter_token_url', 10, 2);

        update_option('widget_gantry_breakcrumbs',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
  20003 => 
  array (
  ),
));

        remove_filter('pre_update_option_widget_gantry_breakcrumbs', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_categories', 'filter_token_url', 10, 2);

        update_option('widget_gantry_categories',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_categories', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_copyright', 'filter_token_url', 10, 2);

        update_option('widget_gantry_copyright',array (
  2 => 
  array (
  ),
  3 => 
  array (
    'text' => 'Designed by RocketTheme',
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_copyright', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_date', 'filter_token_url', 10, 2);

        update_option('widget_gantry_date',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_date', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantrydivider', 'filter_token_url', 10, 2);

        update_option('widget_gantrydivider',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
  10003 => 
  array (
  ),
  10004 => 
  array (
  ),
  10005 => 
  array (
  ),
  10006 => 
  array (
  ),
  10007 => 
  array (
  ),
  10008 => 
  array (
  ),
  10009 => 
  array (
  ),
  10011 => 
  array (
  ),
  30003 => 
  array (
  ),
  30004 => 
  array (
  ),
  30005 => 
  array (
  ),
  30006 => 
  array (
  ),
  30007 => 
  array (
  ),
  30008 => 
  array (
  ),
  30009 => 
  array (
  ),
  30010 => 
  array (
  ),
  30011 => 
  array (
  ),
  30012 => 
  array (
  ),
  30013 => 
  array (
  ),
  30014 => 
  array (
  ),
  30015 => 
  array (
  ),
  30016 => 
  array (
  ),
  30017 => 
  array (
  ),
  30018 => 
  array (
  ),
  30019 => 
  array (
  ),
  30020 => 
  array (
  ),
  30021 => 
  array (
  ),
  30022 => 
  array (
  ),
  30023 => 
  array (
  ),
  30024 => 
  array (
  ),
  30025 => 
  array (
  ),
  30027 => 
  array (
  ),
  30028 => 
  array (
  ),
  30029 => 
  array (
  ),
  30030 => 
  array (
  ),
  30031 => 
  array (
  ),
  30032 => 
  array (
  ),
  30033 => 
  array (
  ),
  30034 => 
  array (
  ),
  30035 => 
  array (
  ),
  30036 => 
  array (
  ),
  30037 => 
  array (
  ),
  30038 => 
  array (
  ),
  30039 => 
  array (
  ),
  30040 => 
  array (
  ),
  30041 => 
  array (
  ),
  30042 => 
  array (
  ),
  30043 => 
  array (
  ),
  30044 => 
  array (
  ),
));

        remove_filter('pre_update_option_widget_gantrydivider', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_fontsizer', 'filter_token_url', 10, 2);

        update_option('widget_gantry_fontsizer',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_fontsizer', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_links', 'filter_token_url', 10, 2);

        update_option('widget_gantry_links',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_links', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_meta', 'filter_token_url', 10, 2);

        update_option('widget_gantry_meta',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_meta', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_overrides_map', 'filter_token_url', 10, 2);

        update_option('widget_gantry_overrides_map',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_overrides_map', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_pages', 'filter_token_url', 10, 2);

        update_option('widget_gantry_pages',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_pages', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_recentcomments', 'filter_token_url', 10, 2);

        update_option('widget_gantry_recentcomments',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_recentcomments', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_recentposts', 'filter_token_url', 10, 2);

        update_option('widget_gantry_recentposts',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_recentposts', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_resetsettings', 'filter_token_url', 10, 2);

        update_option('widget_gantry_resetsettings',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_resetsettings', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_totop', 'filter_token_url', 10, 2);

        update_option('widget_gantry_totop',array (
  2 => 
  array (
  ),
  3 => 
  array (
    'text' => 'Scroll To Top',
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_totop', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_viewswitcher', 'filter_token_url', 10, 2);

        update_option('widget_gantry_viewswitcher',array (
  2 => 
  array (
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_viewswitcher', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_iphonemenu', 'filter_token_url', 10, 2);

        update_option('widget_gantry_iphonemenu',array (
  2 => 
  array (
  ),
  3 => 
  array (
    'nav_menu' => 'main-menu',
    'theme' => 'gantry_touch',
    'limit_levels' => '0',
    'startLevel' => '0',
    'endLevel' => '0',
    'showAllChildren' => '1',
    'maxdepth' => '10',
    'touchmenu-animation' => 'cube',
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_iphonemenu', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_menu', 'filter_token_url', 10, 2);

        update_option('widget_gantry_menu',array (
  2 => 
  array (
  ),
  3 => 
  array (
    'title' => '',
    'nav_menu' => 'main-menu',
    'theme' => 'gantry_fusion',
    'limit_levels' => '0',
    'startLevel' => '0',
    'endLevel' => '0',
    'showAllChildren' => '1',
    'show_empty_menu' => '0',
    'maxdepth' => '10',
    'fusion_load_css' => '0',
    'fusion_enable_js' => '1',
    'fusion_opacity' => '1',
    'fusion_effect' => 'slidefade',
    'fusion_hidedelay' => '500',
    'fusion_menu_animation' => 'Quad.easeOut',
    'fusion_menu_duration' => '400',
    'fusion_pill' => '0',
    'fusion_pill_animation' => 'Back.easeOut',
    'fusion_pill_duration' => '400',
    'fusion_centeredOffset' => '0',
    'fusion_tweakInitial_x' => '0',
    'fusion_tweakInitial_y' => '0',
    'fusion_tweakSubsequent_x' => '0',
    'fusion_tweakSubsequent_y' => '0',
    'fusion_enable_current_id' => '0',
    'menu_suffix' => '',
  ),
  4 => 
  array (
    'title' => '',
    'nav_menu' => 'main-menu',
    'theme' => 'gantry_splitmenu',
    'limit_levels' => '1',
    'startLevel' => '1',
    'endLevel' => '1',
    'showAllChildren' => '0',
    'show_empty_menu' => '0',
    'maxdepth' => '10',
    'fusion_load_css' => '0',
    'fusion_enable_js' => '1',
    'fusion_opacity' => '1',
    'fusion_effect' => 'slidefade',
    'fusion_hidedelay' => '500',
    'fusion_menu_animation' => 'Quad.easeOut',
    'fusion_menu_duration' => '400',
    'fusion_pill' => '0',
    'fusion_pill_animation' => 'Back.easeOut',
    'fusion_pill_duration' => '400',
    'fusion_centeredOffset' => '0',
    'fusion_tweakInitial_x' => '0',
    'fusion_tweakInitial_y' => '0',
    'fusion_tweakSubsequent_x' => '0',
    'fusion_tweakSubsequent_y' => '0',
    'fusion_enable_current_id' => '0',
    'menu_suffix' => 'top',
  ),
  10006 => 
  array (
    'title' => 'Main Menu',
    'nav_menu' => 'main-menu',
    'theme' => 'gantry_splitmenu',
    'limit_levels' => '1',
    'startLevel' => '0',
    'endLevel' => '1',
    'showAllChildren' => '1',
    'show_empty_menu' => '0',
    'maxdepth' => '10',
    'fusion_load_css' => '0',
    'fusion_enable_js' => '1',
    'fusion_opacity' => '1',
    'fusion_effect' => 'slidefade',
    'fusion_hidedelay' => '500',
    'fusion_menu_animation' => 'Quad.easeOut',
    'fusion_menu_duration' => '400',
    'fusion_pill' => '0',
    'fusion_pill_animation' => 'Back.easeOut',
    'fusion_pill_duration' => '400',
    'fusion_centeredOffset' => '0',
    'fusion_tweakInitial_x' => '0',
    'fusion_tweakInitial_y' => '0',
    'fusion_tweakSubsequent_x' => '0',
    'fusion_tweakSubsequent_y' => '0',
    'fusion_enable_current_id' => '0',
    'menu_suffix' => '',
  ),
  6 => 
  array (
    'title' => 'Main Menu',
    'nav_menu' => 'main-menu',
    'theme' => 'gantry_splitmenu',
    'limit_levels' => '1',
    'startLevel' => '0',
    'endLevel' => '1',
    'showAllChildren' => '1',
    'show_empty_menu' => '0',
    'maxdepth' => '10',
    'fusion_load_css' => '0',
    'fusion_enable_js' => '1',
    'fusion_opacity' => '1',
    'fusion_effect' => 'slidefade',
    'fusion_hidedelay' => '500',
    'fusion_menu_animation' => 'Quad.easeOut',
    'fusion_menu_duration' => '400',
    'fusion_pill' => '0',
    'fusion_pill_animation' => 'Back.easeOut',
    'fusion_pill_duration' => '400',
    'fusion_centeredOffset' => '0',
    'fusion_tweakInitial_x' => '0',
    'fusion_tweakInitial_y' => '0',
    'fusion_tweakSubsequent_x' => '0',
    'fusion_tweakSubsequent_y' => '0',
    'fusion_enable_current_id' => '0',
    'menu_suffix' => '',
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_gantry_menu', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_gantry_logo', 'filter_token_url', 10, 2);

        update_option('widget_gantry_logo',array (
  2 => 
  array (
  ),
  3 => 
  array (
    'perstyle' => '1',
    'css' => 'body #rt-logo',
  ),
  '_multiwidget' => 1,
  10503 => 
  array (
    'perstyle' => '1',
    'css' => 'body #rt-logo',
  ),
  30503 => 
  array (
    'perstyle' => '1',
    'css' => 'body #rt-logo',
  ),
));

        remove_filter('pre_update_option_widget_gantry_logo', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_search', 'filter_token_url', 10, 2);

        update_option('widget_search',array (
  2 => 
  array (
    'title' => '',
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_search', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_recent-posts', 'filter_token_url', 10, 2);

        update_option('widget_recent-posts',array (
  2 => 
  array (
    'title' => '',
    'number' => 5,
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_recent-posts', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_recent-comments', 'filter_token_url', 10, 2);

        update_option('widget_recent-comments',array (
  2 => 
  array (
    'title' => '',
    'number' => 5,
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_recent-comments', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_archives', 'filter_token_url', 10, 2);

        update_option('widget_archives',array (
  2 => 
  array (
    'title' => '',
    'count' => 0,
    'dropdown' => 0,
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_archives', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_categories', 'filter_token_url', 10, 2);

        update_option('widget_categories',array (
  2 => 
  array (
    'title' => '',
    'count' => 0,
    'hierarchical' => 0,
    'dropdown' => 0,
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_categories', 'filter_token_url', 10, 2);

        add_filter('pre_update_option_widget_meta', 'filter_token_url', 10, 2);

        update_option('widget_meta',array (
  2 => 
  array (
    'title' => '',
  ),
  '_multiwidget' => 1,
));

        remove_filter('pre_update_option_widget_meta', 'filter_token_url', 10, 2);

$gantry_menu_items = array();
function rokimport_get_post_from_guid($guid) {
    global $wpdb;
    $guid = replace_token_url($guid);
    $posts = $wpdb->get_results("SELECT ID FROM " . $wpdb->posts . " WHERE guid = '" . $guid . "'");
    return (count($posts) > 0) ? $posts[0]->ID : 0;
}
function rokimport_get_taxonomy($name, $taxonomy) {
    $taxfield = get_term_by( "slug", $name, $taxonomy);
    return $taxfield->term_id;
}
global $wp_version;
if (version_compare($wp_version,"3.0",">=")){
$importing_menu = wp_get_nav_menu_object("main-menu");$menu_item_mapping = array(0=>0);$menu_item_mapping[59] = wp_update_nav_menu_item($importing_menu->term_id, 0, array('menu-item-parent-id' => $menu_item_mapping[0],'menu-item-type' => 'custom','menu-item-title' => 'Home','menu-item-status' => 'publish','menu-item-target' => '','menu-item-classes' => '','menu-item-description' => '','menu-item-xfn' => '','menu-item-position' => '1','menu-item-attr-title' => '','menu-item-url' => '@RT_SITE_URL@/'));$gantry_menu_items["main-menu"][$menu_item_mapping[59]] = array (
  'gantrymenu_subtext' => '',
  'gantrymenu_icon' => '',
  'gantrymenu_submenu_cols' => '1',
);$menu_item_mapping[108] = wp_update_nav_menu_item($importing_menu->term_id, 0, array('menu-item-parent-id' => $menu_item_mapping[0],'menu-item-type' => 'post_type','menu-item-title' => 'Gantry Features','menu-item-status' => 'publish','menu-item-target' => '','menu-item-classes' => '','menu-item-description' => ' ','menu-item-xfn' => '','menu-item-position' => '2','menu-item-attr-title' => '','menu-item-object-id' => rokimport_get_post_from_guid('@RT_SITE_URL@/?page_id=100'),'menu-item-object' => 'page'));$gantry_menu_items["main-menu"][$menu_item_mapping[108]] = array (
  'gantrymenu_subtext' => '',
  'gantrymenu_icon' => '',
  'gantrymenu_submenu_cols' => '1',
);$menu_item_mapping[107] = wp_update_nav_menu_item($importing_menu->term_id, 0, array('menu-item-parent-id' => $menu_item_mapping[0],'menu-item-type' => 'post_type','menu-item-title' => 'Widget Positions','menu-item-status' => 'publish','menu-item-target' => '','menu-item-classes' => '','menu-item-description' => ' ','menu-item-xfn' => '','menu-item-position' => '3','menu-item-attr-title' => '','menu-item-object-id' => rokimport_get_post_from_guid('@RT_SITE_URL@/?page_id=102'),'menu-item-object' => 'page'));$gantry_menu_items["main-menu"][$menu_item_mapping[107]] = array (
  'gantrymenu_subtext' => '',
  'gantrymenu_icon' => '',
  'gantrymenu_submenu_cols' => '1',
);$menu_item_mapping[106] = wp_update_nav_menu_item($importing_menu->term_id, 0, array('menu-item-parent-id' => $menu_item_mapping[0],'menu-item-type' => 'post_type','menu-item-title' => 'Page Layout','menu-item-status' => 'publish','menu-item-target' => '','menu-item-classes' => '','menu-item-description' => ' ','menu-item-xfn' => '','menu-item-position' => '4','menu-item-attr-title' => '','menu-item-object-id' => rokimport_get_post_from_guid('@RT_SITE_URL@/?page_id=104'),'menu-item-object' => 'page'));$gantry_menu_items["main-menu"][$menu_item_mapping[106]] = array (
  'gantrymenu_subtext' => '',
  'gantrymenu_icon' => '',
  'gantrymenu_submenu_cols' => '1',
);$menu_item_mapping[109] = wp_update_nav_menu_item($importing_menu->term_id, 0, array('menu-item-parent-id' => $menu_item_mapping[0],'menu-item-type' => 'taxonomy','menu-item-title' => 'Category Layout','menu-item-status' => 'publish','menu-item-target' => '','menu-item-classes' => '','menu-item-description' => ' ','menu-item-xfn' => '','menu-item-position' => '5','menu-item-attr-title' => '','menu-item-object-id' => rokimport_get_taxonomy('samplecat', 'category'),'menu-item-object' => 'category'));$gantry_menu_items["main-menu"][$menu_item_mapping[109]] = array (
  'gantrymenu_subtext' => '',
  'gantrymenu_icon' => '',
  'gantrymenu_submenu_cols' => '1',
);$menu_item_mapping[125] = wp_update_nav_menu_item($importing_menu->term_id, 0, array('menu-item-parent-id' => $menu_item_mapping[0],'menu-item-type' => 'custom','menu-item-title' => 'RocketTheme','menu-item-status' => 'publish','menu-item-target' => '_blank','menu-item-classes' => '','menu-item-description' => '','menu-item-xfn' => '','menu-item-position' => '6','menu-item-attr-title' => '','menu-item-url' => 'http://rockettheme.com'));$gantry_menu_items["main-menu"][$menu_item_mapping[125]] = array (
  'gantrymenu_subtext' => '',
  'gantrymenu_icon' => '',
  'gantrymenu_submenu_cols' => '1',
);update_option("gantry_menu_items",$gantry_menu_items);}